﻿using CoreModule;
using Prism.Mvvm;
using Prism.Navigation;
using Prism.Regions;
namespace IdResourceModule.ViewModels
{
    /// <summary>
    /// 
    /// </summary>
	public class MeasurementHomeViewModel : BindableBase
        ,IDestructible,
        IRegionMemberLifetime,
        INavigationAware
    {
        IRegionManager RegionManager { get; set; }
       /// <summary>
       /// 
       /// </summary>
        public bool KeepAlive => false;
     
        /// <summary>
        /// 
        /// </summary>
        /// <param name="regionManager"></param>
        public MeasurementHomeViewModel(
            IRegionManager regionManager
           , IWindowLifetime windowLifetime
            )
        {
            
            RegionManager =regionManager;
            windowLifetime.RegionViewKind = RegionViewKind.ManagementHome;
        }
         
        public void Destroy()
        {
          
        }
        public void OnNavigatedTo(NavigationContext navigationContext)
        {
          
        }
        public bool IsNavigationTarget(NavigationContext navigationContext)
        {
            return true;
        }
        public void OnNavigatedFrom(NavigationContext navigationContext)
        {
          
        }
    }
}
